<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html> 
 <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="/TP/Public/css/style.css" />
    <!--[if IE 6]>
    <script src="/TP/Public/js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->   
    
    <script type="text/javascript" src="/TP/Public/js/jquery-2.1.3.min.js"></script>
    <script type="text/javascript" src="/TP/Public/js/menu.js"></script>    
            
    <script type="text/javascript" src="/TP/Public/js/lrscroll_1.js"></script>
        
    
    <script type="text/javascript" src="/TP/Public/js/n_nav.js"></script>   
     
     
<title>商品详情</title>
</head>
<body>  
<!--Begin Header Begin-->
<div class="soubg">
	<div class="sou">
        <span class="fr">
        	<span class="fl">
                <?php if(empty($username)): ?>你好，请<a href="<?php echo U('Home/Login/index');?>">登录</a>&nbsp; <a href="<?php echo U('Home/User/Regist');?>" style="color:#ff4e00;">免费注册　</a>
                <?php else: ?>
                    你好&nbsp;<?php echo ($username); ?>&nbsp;<a href="<?php echo U('Home/index/tuichu');?>">退出</a><?php endif; ?> 
            <a href="<?php echo U('Home/member/index');?>">&nbsp;|个人中心</a>&nbsp;|
            </span>
        	　<span class="ss">
            	<div class="ss_list">
                	<a href="#">收藏夹</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="<?php echo U('Home/member/Member_Collect');?>">我的收藏夹</a></li>
                            </ul>
                        </div>
                    </div>     
                </div>
                <div class="ss_list">
                	<a href="#">客户服务</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
                <div class="ss_list">
                	<a href="#">网站导航</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="#">网站导航</a></li>
                                <li><a href="#">网站导航</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
            </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="/TP/Public/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<div class="top">
    <div class="logo"><img src="/TP/Public/images/logo.jpg" width="200" height="60" /></div>
     <div class="search">
      <form method="get" action="<?php echo U('home/list/seach');?>">
          <input type="text" name="seach" class="s_ipt" />
            <input type="submit" value="搜索" class="s_btn" />
        </form>                      
    </div>
    <!-- onmouseover="mouserover('user')"  [ <span>3</span> ] -->
    <div class="i_car" >
    	<div class="car_t" >购物车</div>
        <div class="car_bg">
       	
        <?php  if($_SESSION['user']['id']){ $buycar = M('buycar'); $map['uid'] = ['eq',session('user')['id']]; $blist = $buycar->where($map)->select(); echo ' <ul class="cars">'; foreach($blist as $blist){ echo '
                          <li>
                          <div class="img"><a href="#"><img src="/TP/Uploads/comm/'.$blist['goodspic'].'" width="58" height="58" /></a></div>
                            <div class="name"><a href="#">'.$blist['goodsname'].'</a></div>
                            <div class="price"><font color="#ff4e00">'.$blist['price'].'￥</font> X'.$blist['number'].'</div>
                          </li>
        
                      '; } echo '  </ul>'; }else{ echo '<div class="un_login">还未登录<a href="/TP/Home/Login/index.html" style="color:#ff4e00;">马上登录</a> 查看购物车！</div>'; } ?>

        </div>
    </div>
</div>
<script>
    // function mouserover(user){
    //     jq.get("<?php echo U('Home/Header/header');?>",{'user':user},function(data){
    //       // alert(data);
    //     });
    // }

</script>
<!--End Header End--> 
<!--Begin Menu Begin-->
<div class="menu_bg">
    <div class="menu">
        <!--Begin 商品分类详情 Begin-->    
        <div class="nav">
            <div class="nav_t">全部商品分类</div>
            <div class="leftNav none">
                <ul>      
                   <?php if(is_array($t_list)): $i = 0; $__LIST__ = $t_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$t_list): $mod = ($i % 2 );++$i;?><li>
                        <div class="fj">
                            <span class="n_img"><span></span><img src="/TP/Public/images/nav1.png" /></span>
                            <span class="fl"><?php echo ($t_list["name"]); ?></span>
                        </div> 
                        <?php if(!empty($t_list['lower'])): ?><div class="zj">
                            <div class="zj_l">
                             <?php if(is_array($t_list[lower])): $i = 0; $__LIST__ = $t_list[lower];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$w_list): $mod = ($i % 2 );++$i;?><div class="zj_l_c">
                                    <h2><a href="<?php echo U('Home/List/index',['id'=>$w_list['id']]);?>"><?php echo ($w_list['name']); ?></a></h2>
                                    <?php if(!empty($w_list['lower'])): if(is_array($w_list['lower'])): $i = 0; $__LIST__ = $w_list['lower'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$e_list): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Home/List/index',['id'=>$e_list['id']]);?>"><?php echo ($e_list['name']); ?></a>|<?php endforeach; endif; else: echo "" ;endif; endif; ?>
                                </div><?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                        
                        </div><?php endif; ?>
                    </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>            
            </div>
        </div> 
		
        <!--End 商品分类详情 End-->                                                     
        <ul class="menu_r">    
		<!--导航-->  
					<li><a href="/TP/index.php">首页</a></li>
            <?php if(is_array($bar)): foreach($bar as $key=>$bar): ?><li><a href="<?php echo U('Home/list/index',['id'=>$bar['id']]);?>"><?php echo ($bar["name"]); ?></a></li>
     <!--        <li><a href="Fresh.html">生鲜</a></li>
            <li><a href="HomeDecoration.html">家居</a></li>
            <li><a href="SuitDress.html">女装</a></li>
            <li><a href="MakeUp.html">美妆</a></li>
            <li><a href="Digital.html">数码</a></li>
            <li><a href="GroupBuying.html">团购</a></li> --><?php endforeach; endif; ?>                                                                      
        </ul>

    </div>
</div>
<!--End Menu End--> 
<div class="i_bg">    
    <div class="postion">
        <span class="fl"><a href="<?php echo U('Home/Index/index');?>">首页</a> > <?php echo ($com); ?></span>
    </div>    
    <div class="content mar_10">
        <!--Begin 特卖 Begin-->
        <div class="s_left">
            <div class="lim_time">
                <div class="lim_sh_bg">
                    <span class="lim_sh">分享</span>
                    <a href="#"><img src="/TP/Public/images/sh_1.gif" /></a>
                    <a href="#"><img src="/TP/Public/images/sh_2.gif" /></a>
                    <a href="#"><img src="/TP/Public/images/sh_3.gif" /></a>
                    <a href="#"><img src="/TP/Public/images/sh_4.gif" /></a>
                    <a href="#"><img src="/TP/Public/images/sh_5.gif" /></a>
                </div>
                <table  id="goods_tb" border="0" style="width:100%; margin-bottom:50px;" cellspacing="0" cellpadding="0">
                  <tr valign="top">
                    <td width="315">
                        <div class="lim_name"><?php echo ($list['goods']); ?></div>
                        <div class="lim_price">
                            <span class="ch_txt"><?php echo ($list['price']); ?></span>
                            <a  class="ch_a" onclick="buy()" >购买</a>
                        </div>
                        <!-- <?php echo U('Home/Buycar/index?');?>?id=<?php echo ($list['id']); ?> -->
                        <div class="lim_c">
                            <table border="0" style="width:100%; color:#888888;" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="25%">市场价 </td>
                                <td width="45%"><i><?php echo ($list['price']); ?></i>  ￥</td>
                                <td width="30%">积分:<b><?php echo ($list["num"]); ?></b></td>
                              </tr>
                            <!--   <tr style="font-family:'Microsoft YaHei';">
                                <td style="text-decoration:line-through;">￥<?php echo ($list['price']); ?></td>                   
                                <td>100</td>
                              </tr> -->
                            </table>
                        </div>
                        <div class="lim_c">
                            <div class="des_choice">
                                <!-- <span class="fl">容量：</span>
                                <ul>
                                <?php if(is_array($size)): foreach($size as $key=>$val): ?>-->
                                <!-- class="checked" -->
                                    <!-- <li><?php echo ($val); ?><div class="ch_img"></div>GB</li> -->
                                   <!--  <li>50ml<div class="ch_img"></div></li>
                                    <li>100ml<div class="ch_img"></div></li> -->
                                <!--<?php endforeach; endif; ?>
                                </ul> -->
                            </div>
                            <div class="des_choice">
                                <span class="fl">颜色：</span>
                                <ul>
                                <?php if(is_array($color)): foreach($color as $key=>$val): ?><li><?php echo ($val); ?><div class="ch_img"></div></li>
                                   <!--  <li class="checked">白色<div class="ch_img"></div></li>
                                    <li>黑色<div class="ch_img"></div></li> --><?php endforeach; endif; ?>
                                </ul>
                            </div>
                        </div>
                        <div class="lim_c">
                            <span class="fl">数量：</span><input type="text" value="1" onchange="change()" class="lim_ipt" />
                        </div>
                        <!-- <div class="lim_clock">
                            距离团购结束还有<br />
                            <span>1200 时 30 分 28 秒</span>
                        </div> -->
                    </td>
                    <td width="525" align="center" style="border-left:1px solid #eaeaea;"><img src="/TP/Uploads/comm/<?php echo ($list["pic"]); ?>" width="460" height="460" /></td>
                  </tr>
                </table>
            </div>
            <div class="des_border">
                <div class="des_tit">
                    <ul>
                        <li class="current"><a href="#p_attribute">商品属性</a></li>
                        <li><a href="#p_details">商品详情</a></li>
                        <li><a href="#p_comment">商品评论</a></li>
                    </ul>
                </div>
                <div class="des_con" id="p_attribute">
                    
                    <table border="0" align="center" style="width:100%; font-family:'宋体'; margin:10px auto;" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>商品名称：<?php echo ($param['goodsname']); ?></td>
                        <td>商品编号：<?php echo ($param['gid']); ?></td>
                        <td>上架时间：<?php echo ($list['addtime']); ?></td>
                      </tr>
                      <tr>
                        <td>商品毛重：<?php echo ($param["weight"]); ?>g</td>
                        <td>商品产地：<?php echo ($param["place"]); ?></td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>大小：<?php echo ($param["size"]); ?>寸 </td>
                        <!-- <td>适合人群:<?php echo ($param["person"]); ?></td> -->
                        <td>&nbsp;</td>
                      </tr>
                    </table>                                               
                                            
                        
                </div>
            </div>  
            
            <div class="des_border" id="p_details">
                <div class="des_t">商品详情</div>
                <div class="des_con">
                 <!--    <table border="0" align="center" style="width:745px; font-size:14px; font-family:'宋体';" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="265"><img src="/TP/Public/images/de1.jpg" width="206" height="412" /></td>
                        <td>
                            <b>迪奥真我香水(Q版)</b><br />
                            【商品规格】：5ml<br />
                            【商品质地】：液体<br />
                            【商品日期】：与专柜同步更新<br />
                            【商品产地】：法国<br />
                            【商品包装】：无外盒 无塑封<br />
                            【商品香调】：花束花香调<br />
                            【适用人群】：适合女性（都市白领，性感，有女人味的成熟女性）<br />
                        </td>
                      </tr>
                    </table>
                     -->
                    <p align="center">
                    <?php if(is_array($img)): foreach($img as $key=>$img): ?><img src="/TP/Uploads/comm/<?php echo ($img["picname"]); ?>" width="746" height="425" /><br /><br />
                   <!--  <img src="/TP/Public/images/de3.jpg" width="750" height="417" /><br /><br />
                    <img src="/TP/Public/images/de4.jpg" width="750" height="409" /><br /><br />
                    <img src="/TP/Public/images/de5.jpg" width="750" height="409" /> --><?php endforeach; endif; ?>
                    </p>
                    
                </div>
            </div>  
            
            <div class="des_border" id="p_comment">
                <div class="des_t">商品评论</div>
                
                <table border="0" class="jud_tab" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="175" class="jud_per">
                        <p>80.0%</p>好评度
                    </td>
                    <td width="310">
                        <table border="0" style="width:100%;" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="90">好评<font color="#999999">（80%）</font></td>
                            <td><img src="/TP/Public/images/pl.gif" align="absmiddle" /></td>
                          </tr>
                          <tr>
                            <td>中评<font color="#999999">（20%）</font></td>
                            <td><img src="/TP/Public/images/pl.gif" align="absmiddle" /></td>
                          </tr>
                          <tr>
                            <td>差评<font color="#999999">（0%）</font></td>
                            <td><img src="/TP/Public/images/pl.gif" align="absmiddle" /></td>
                          </tr>
                        </table>
                    </td>
                    <!-- 2017_1_25 跳转到订单做评论-->
                    <td width="290" class="jud_bg">您可对已购买商品进行评价<br /><a href="<?php echo U('home/member/member_order');?>"><img src="/TP/Public/images/btn_jud.gif" /></a></td>
                  </tr>
                  <!-- 结束 -->
                </table>
                
                
                    <!-- 2017_1_25=====================展示评论             -->
                <table border="0" class="jud_list" style="width:100%; margin-top:30px;" cellspacing="0" cellpadding="0">
                  <?php if(is_array($clist)): foreach($clist as $key=>$clist): ?><tr valign="top">
                    <td width="160"><img src="/TP/Uploads/user/<?php echo ($clist["userpic"]); ?>" width="20" height="20" align="absmiddle" />&nbsp;<?php echo ($clist["username"]); ?></td>
                    <td width="180">
                        <!-- 颜色分类：<font color="#999999">粉色</font> <br />
                        型号：<font color="#999999">50ml</font> -->
                        <?php echo ($clist["content"]); ?>
                    </td>
                    <td>
                         
                        <font color="#999999"><?php echo date("Y-m-d",$clist['addtime']);?></font>
                    </td>
                  </tr><?php endforeach; endif; ?>
                </table>
                    <!-- 展示评论结束 -->
               <!--  <div class="pages">
                   <a href="#" class="p_pre">上一页</a><a href="#" class="cur">1</a><a href="#">2</a><a href="#">3</a>...<a href="#">20</a><a href="#" class="p_pre">下一页</a>
               </div> -->
                
            </div>
            
        </div>        
        <!--End 特卖 End-->
        
        <div class="s_right">
            <div class="r_history">
                <div class="r_his_t">猜你喜欢</div>
                <ul>
                    <?php if(is_array($like)): foreach($like as $key=>$like): ?><li>
                        <div class="img"><a href="#"><img src="/TP/Uploads/comm/<?php echo ($like["pic"]); ?>" width="185" height="162" /></a></div>
                        <div class="name"><a href="<?php echo U('Home/goods/index',['id'=>$like['id']]);?>"><?php echo ($like["goods"]); ?></a></div>
                        <div class="price">
                            <font>￥<span><?php echo ($like["price"]); ?></span></font> &nbsp; 18R
                        </div>
                    </li><?php endforeach; endif; ?>
                   <!--  <li>
                        <div class="img"><a href="#"><img src="/TP/Public/images/his_2.jpg" width="185" height="162" /></a></div>
                        <div class="name"><a href="#">Dior/迪奥香水2件套装</a></div>
                        <div class="price">
                            <font>￥<span>768.00</span></font> &nbsp; 18R
                        </div>
                    </li>
                    <li>
                        <div class="img"><a href="#"><img src="/TP/Public/images/his_3.jpg" width="185" height="162" /></a></div>
                        <div class="name"><a href="#">Dior/迪奥香水2件套装</a></div>
                        <div class="price">
                            <font>￥<span>680.00</span></font> &nbsp; 18R
                        </div>
                    </li> -->
                </ul>
            </div>
            <div class="sell_hot">
                <div class="s_hot_t">
                    <span class="fl">热销品牌</span>
                    <span class="h_more fr"><a href="#">更多</a></span>
                </div>
                <ul>
                    <li><a href="#"><img src="/TP/Public/images/hb_1.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_2.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_3.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_4.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_5.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_6.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_7.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_8.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_9.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_10.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_11.jpg" width="160" height="59" /></a></li>
                    <li><a href="#"><img src="/TP/Public/images/hb_12.jpg" width="160" height="59" /></a></li>
                </ul>
            </div>
        </div>
    </div>    
    <!--Begin Footer Begin -->
      <div class="b_btm_bg b_btm_c">
        <div class="b_btm">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b1.png" width="62" height="62" /></td>
                <td><h2>正品保障</h2>正品行货  放心购买</td>
              </tr>
            </table>
			<table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b2.png" width="62" height="62" /></td>
                <td><h2>满38包邮</h2>满38包邮 免运费</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b3.png" width="62" height="62" /></td>
                <td><h2>天天低价</h2>天天低价 畅选无忧</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b4.png" width="62" height="62" /></td>
                <td><h2>准时送达</h2>收货时间由你做主</td>
              </tr>
            </table>
        </div>
    </div>
    <div class="b_nav">
    	<dl>                                                                                            
        	<dt><a href="#">新手上路</a></dt>
            <dd><a href="#">售后流程</a></dd>
            <dd><a href="#">购物流程</a></dd>
            <dd><a href="#">订购方式</a></dd>
            <dd><a href="#">隐私声明</a></dd>
            <dd><a href="#">推荐分享说明</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">配送与支付</a></dt>
            <dd><a href="#">货到付款区域</a></dd>
            <dd><a href="#">配送支付查询</a></dd>
            <dd><a href="#">支付方式说明</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">会员中心</a></dt>
            <dd><a href="#">资金管理</a></dd>
            <dd><a href="#">我的收藏</a></dd>
            <dd><a href="#">我的订单</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">服务保证</a></dt>
            <dd><a href="#">退换货原则</a></dd>
            <dd><a href="#">售后服务保证</a></dd>
            <dd><a href="#">产品质量保证</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">友情链接</a></dt>
            <?php if(is_array($link)): foreach($link as $key=>$link): ?><dd><a href="<?php echo ($link["linkaddress"]); ?>"><?php echo ($link["linkname"]); ?></a></dd><?php endforeach; endif; ?>
        </dl>
        <div class="b_tel_bg">
        	<a href="#" class="b_sh1">新浪微博</a>            
        	<a href="#" class="b_sh2">腾讯微博</a>
            <p>
            服务热线：<br />
            <span>400-123-4567</span>
            </p>
        </div>
        <div class="b_er">
            <div class="b_er_c"><img src="/TP/Public/images/er.gif" width="118" height="118" /></div>
            <img src="/TP/Public/images/ss.png" />
        </div>
    </div>    
    <div class="btmbg">
		<div class="btm">
        	备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
            <img src="/TP/Public/images/b_1.gif" width="98" height="33" /><img src="/TP/Public/images/b_2.gif" width="98" height="33" /><img src="/TP/Public/images/b_3.gif" width="98" height="33" /><img src="/TP/Public/images/b_4.gif" width="98" height="33" /><img src="/TP/Public/images/b_5.gif" width="98" height="33" /><img src="/TP/Public/images/b_6.gif" width="98" height="33" />
        </div>    	
    </div>
    <!--End Footer End -->    
</div>
</body>
<script>
var jq = jQuery.noConflict();

   //取得购买数量 显示价格
   function change()
   {
        var num = jq('.lim_c input').val();
       var price = jq('.lim_c i').html();
       if(parseInt(num)== num){
        if(num > 10){
            jq('.lim_c input').val('10');
            jq('.lim_price .ch_txt').html(10*price);
         }else if(num < 0){
            jq('.lim_c input').val('1');
            jq('.lim_price .ch_txt').html(price);
         }else{
            jq('.lim_price .ch_txt').html(num*price);
         }
         }else{
            jq('.lim_c input').val('1');
            jq('.lim_price .ch_txt').html(price);
         }
       }
    //--结束
    //设置默认颜色 大小
    jq('.lim_c .des_choice:first-child ul li:first-child').addClass('checked');
    jq('.lim_c .des_choice:last-child ul li:first-child').addClass('checked');
    //选择颜色 大小事件
    jq('.lim_c .des_choice:first-child ul li').click(function(){
        jq('.lim_c .des_choice:first-child ul li').removeClass('checked');
       jq(this).addClass('checked');
       // alert(jq(this).text());
    });
     jq('.lim_c .des_choice:last-child ul li').click(function(){
        jq('.lim_c .des_choice:last-child ul li').removeClass('checked');
       jq(this).addClass('checked');
    });
     //确认购物
    function buy(){
        //获取用户购物属性
        var num = jq('.lim_c input').val();
        var price = jq('.lim_c i').html();
        var total = num*price;
        var size= jq('.lim_c .des_choice:first-child ul .checked').text();
        var color = jq('.lim_c .des_choice:last-child ul .checked').text();
        var goodsname = jq('#goods_tb .lim_name').text();
        var id = <?php echo ($list['id']); ?>;
        var goodspic = "<?php echo ($list['pic']); ?>";
        // var uid = <?php echo (session('user')); ?>;
        var integral = jq('.lim_c td b').html();
        var url = "<?php echo U('Home/Buycar/writebc');?>";
        //使用ajax将用户购物属性传递到服务器
        jq.get(url,{
            'gid':id,
            'number':num,
            'price':price,
            'color':color,
            'size':size,
            'goodsname':goodsname,
            // 'uid':uid,
            'integral':integral,
            'goodspic':goodspic,
            'total':total
        },function(data){
            if(data == '购物成功'){
                 window.location.href = "<?php echo U('Home/Buycar/index');?>";
                 // alert(data);
            }else{
                alert('购物失败，请登录');
            }
        });
    }
</script>
<!--[if IE 6]>
<script src="/TP/Public///letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>